package com.atguigu.mp01.controller;

import com.atguigu.mp01.entity.User;
import com.atguigu.mp01.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author : leimingchao
 * @date Date : 2023年06月02日 14:38
 */
@RestController
public class UserController {

    @Autowired
    private UserService userService;

    @GetMapping(value = "/selectAll")
    public List<User> selectAll() {
        return userService.selectAll();
    }
}
